package com.spn.blog.service.article;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spn.blog.common.dao.pojo.Comment;
import com.spn.blog.common.dao.pojo.LoginUser;
import com.spn.blog.common.vo.Result;
import com.spn.blog.common.vo.params.CommentParam;

public interface CommentsService extends IService<Comment> {
    /**
     * 根据文章ID，查询所有的评论列表
     * @param id
     * @return
     */
    Result comentsByArticleId(Long id);

    /**
     * 提交评论
     * @param commentParam
     * @return
     */
    Result comment(CommentParam commentParam, String sysUserId);
}
